Add bindings for Ctrl-Shift-A to unselect all. (#309301, Kathy Fernandes)
authorMatthias Clasen <mclasen@redhat.com>
Fri, 2 Sep 2005 18:23:10 +0000 (18:23 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 2 Sep 2005 18:23:10 +0000 (18:23 +0000)
2005-09-02  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkentry.c (gtk_entry_class_init):
* gtk/gtktextview.c (gtk_text_view_class_init): Add bindings
for Ctrl-Shift-A to unselect all.  (#309301, Kathy Fernandes)

ChangeLog
ChangeLog.pre-2-10
gtk/gtkentry.c
gtk/gtktextview.c

index e1c812971490095378178e38d20c777addd580bc..8616383f0ee2a462de79702e2594ef65f2d2b182 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2005-09-02  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkentry.c (gtk_entry_class_init): 
+       * gtk/gtktextview.c (gtk_text_view_class_init): Add bindings
+       for Ctrl-Shift-A to unselect all.  (#309301, Kathy Fernandes)
+
        * gtk/gtkimcontextsimple.c: Rework the Unicode hex input
        code. Now we only steal a single key combination, Ctrl-Shift-U,
        instead of sixteen. 
index e1c812971490095378178e38d20c777addd580bc..8616383f0ee2a462de79702e2594ef65f2d2b182 100644 (file)
@@ -1,5 +1,9 @@
 2005-09-02  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkentry.c (gtk_entry_class_init): 
+       * gtk/gtktextview.c (gtk_text_view_class_init): Add bindings
+       for Ctrl-Shift-A to unselect all.  (#309301, Kathy Fernandes)
+
        * gtk/gtkimcontextsimple.c: Rework the Unicode hex input
        code. Now we only steal a single key combination, Ctrl-Shift-U,
        instead of sixteen. 
index 5520e5244878d602cc721a46623a84258f947207..5bf530ddea3cb747eedab2023b73efa8f8fe137f 100644 (file)
@@ -782,6 +782,11 @@ gtk_entry_class_init (GtkEntryClass *class)
                                 GTK_TYPE_MOVEMENT_STEP, GTK_MOVEMENT_VISUAL_POSITIONS,
                                 G_TYPE_INT, 0,
                                G_TYPE_BOOLEAN, FALSE);
+  gtk_binding_entry_add_signal (binding_set, GDK_a, GDK_SHIFT_MASK | GDK_CONTROL_MASK,
+                                "move_cursor", 3,
+                                GTK_TYPE_MOVEMENT_STEP, GTK_MOVEMENT_VISUAL_POSITIONS,
+                                G_TYPE_INT, 0,
+                               G_TYPE_BOOLEAN, FALSE);
 
   /* Activate
    */
index d8c4376468568a64dffb9564c46373c2a73daecc..82f534d99dd8c259927a538b8fd2b98ba1f8e8e2 100644 (file)
@@ -966,6 +966,10 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
                                 "select_all", 1,
                                 G_TYPE_BOOLEAN, FALSE);
 
+  gtk_binding_entry_add_signal (binding_set, GDK_a, GDK_SHIFT_MASK | GDK_CONTROL_MASK,
+                                "select_all", 1,
+                                G_TYPE_BOOLEAN, FALSE);
+
   /* Deleting text */
   gtk_binding_entry_add_signal (binding_set, GDK_Delete, 0,
                                "delete_from_cursor", 2,